// 导入vuex
import { createStore} from "vuex";
export default createStore({
    // state要求为一个函数
    state(){
        return{
            isAddRoute:false
        }
    },
    mutations:{
        //payload为一个对象
        setisAddRoute(state,payload){
            state.isAddRoute=payload.isAddRoute
        }
    }
})